<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
			<!-- css -->
   <link rel="stylesheet" type="text/css" href="__STATIC__/bootstrap/css/bootstrap.css"/>
   	<link rel="stylesheet" type="text/css" href="__CSS__/indexsun.css"/>

   	<style>
		body{background: #f6f6f6;}
   	</style>
	<title>广告续费</title>
	<script type="text/javascript" src='__ROOT__/Public/Static/jquery-1.10.2.js'></script>
</head>
<body>
	<div class="event-create create-event-container" id="event_main_edit_area">
		

	<div class="event-create-body">
	        
	    <div class="event-create-label event-create-label-long">
	        广告续费
	    </div>
		<form action="{:U('Ad/edit')}" class="event-create-form" id="" name=""  method="post" novalidate="" enctype="multipart/form-data" onsubmit="return checkeditforms()">

		   <!--  <div class="form-group">
	            <label for="event-create-name" class="control-label">广告标题<em>*</em></label>
	            <input class="form-control event-create-form-control-block"  maxlength="100" minlength="5" name="title" placeholder="填写广告标题" id="title" type="text" value="">
	        </div>
			<div class="form-group">
	            <label for="event-create-name" class="control-label">广告链接<em></em></label>
	            <input class="form-control event-create-form-control-block"  maxlength="100" minlength="5" name="ad_link" placeholder="链接前需加 http://" type="text" value="" id="img_link">
	        </div> -->
	        <!-- <div class="form-group">
	            <label for="event-create-name" class="control-label">图片地址<em></em></label>
	            <input class="form-control event-create-form-control-block"  maxlength="100" minlength="5" name="img_link" placeholder="链接前需加 http://" type="text" value="" id="img_link">
	        </div> -->
			<!-- <div class="form-group">
	            <label for="event-create-name" class="control-label">上传图片<em></em></label>
	            <input type="file" name="img_upload" style="float:left;margin-top:12px;" id="img_upload">
				<div style="clear:both;"></div>
	        </div> -->
	     
			<div class="form-group">
	            <label for="event-create-name" class="control-label">续费天数<em>*</em></label>
	            <input class="form-control event-create-form-control-block"  max="100" min="1" name="addday" placeholder="填写广告投放天数" type="number" value="" id="addday" >
	        </div>
			<div class="form-group" >
	            <label for="yue_pay" class="control-label">支付方式<em>*</em></label>
	            <div style="float:left;margin-top:12px;margin-right:20px;"><input type="radio" name="pay_code" value="1" id="yue_pay" checked="true">&nbsp;余额支付</div>
				<!-- <div style="float:left;margin-top:12px;">
	            <input type="radio" name="pay_code" value="2" id="pay_online">&nbsp;在线支付</div> -->
				<div style="clear:both;"></div>
	        </div>
		 
	        <div class="form-group" >
	            <div class="media event-create-poster" id="event-create-poster">
	            </div>
	          <div class="modal" >
	                    <div class="modal-dialog">
	                        <div class="modal-body">

	                        </div>
	                        <div class="modal-footer">
	                       
	                        </div>
	                    </div>
	                </div>
	        </div>
	     
	        <div style="clear:both;"></div>
			<input type="hidden" name="ad_id" value="{$ad_id}">
	        <div class="text-center">
				<button class="btn btn-lg btn-primary"><span class="icon-btn-success"></span>确定</button>
			</div>


	</form>  
		    

	    <br>
	    <br>
	    <br>
	</div>
<script>
	function checkeditforms(){
		//var title = $('#title').val();
		//var img_link = $('#img_link').val();
		//var img_upload = $('#img_upload').val();
		var addday = $('#addday').val();
		var max_day = {$max_day};
		//if(title == ''){
			//alert('请填写广告标题。');
			//return false;
		//}
		//if(img_upload == ''){
			//alert('请上传广告图片。');
			//return false;
		//}
		if(addday <= 0){
			alert('请输入广告投放天数。');
			return false;
		}
		if(addday >max_day){
			alert('广告投放天数最多为'+max_day+'天。');
			return false;
		}
		return true;
	}
	
</script>


</body>



</html>